package com.passive.lock.service.key;

import java.util.List;

import com.passive.lock.model.po.TKey;
import com.passive.lock.model.vo.TKeyVo;
import com.passive.lock.utils.Result;

public interface KeyService {
	/**
	 * 添加钥匙
	 * 
	 * @param tDeptVo
	 * @return
	 */
	Result addKey(TKeyVo tKeyVo);

	/**
	 * 查询钥匙列表
	 * 
	 * @param deptId
	 * @param keyName
	 * @param userName
	 * @param keyNote
	 * @param keyState
	 * @return
	 */
	List<TKey> keyList(String groupid,String deptId, String keyName, String userName, String keynote, String keystate, Integer offset,
			Integer limit);

	/**
	 * 查询钥匙总数
	 * 
	 * @param deptId
	 * @param keyName
	 * @param userName
	 * @param keyNote
	 * @param keyState
	 * @return
	 */
	int keyListCount(String groupid,String deptId, String keyName, String userName, String keyNote, String keyState);

	/**
	 * 修改钥匙
	 * 
	 * @param tKeyVo
	 * @return
	 */
	Result updateKey(TKeyVo tKeyVo);

	/**
	 * 删除钥匙
	 * 
	 * @param tKeyVo
	 * @return
	 */
	Result deleteKey(TKeyVo tKeyVo);

	/**
	 * 批量删除钥匙
	 * 
	 * @param TKeyVos
	 * @return
	 */
	Result deleteKeyList(List<Integer> tKeyids);
	/**
	 * 查询钥匙
	 * 
	 * @param deptid
	 * @return
	 */
	Result queryKeyList(String deptid);

	

}
